﻿@model MvcBJDCWebApp.Models.League.League

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<div>
    <h4>League</h4>
    <hr />
    <dl class="dl-horizontal">
        <dt>
            @Html.DisplayNameFor(model => model.LeagueKey)
        </dt>

        <dd>
            @Html.DisplayFor(model => model.LeagueKey)
        </dd>
        <dd>
            <table class="table">
                <tr>
                    <th>Type ID</th>
                    <th>Type </th>
                    <th>Operation</th>

                </tr>
                @foreach (var item in Model.LeagueType)
                {
                <tr>
                    <td>
                        @Html.DisplayFor(modelItem => item.LeagueTypeID)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.Type)
                    </td>
                    <td>
                        @Html.ActionLink("Select", "Details", new { id = item.LeagueTypeID }) 
                    </td>
                </tr>
                }
            </table>
        </dd>

    </dl>
</div>
<p>
    @Html.ActionLink("Edit", "Edit", new { id = Model.LeagueID }) |
    @Html.ActionLink("Back to List", "Index")
</p>
